<?php

namespace Gds\AchatBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Gds\AchatBundle\Entity\StockAchat
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Gds\AchatBundle\Entity\StockAchatRepository")
 */
class StockAchat
{

    /**
     * @ORM\ManyToOne(targetEntity="Gds\ArticleBundle\Entity\Stock", inversedBy="stockAchats")
     * @ORM\JoinColumn(nullable=false)
     */
    private $stock;
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var float $quantite
     *
     * @ORM\Column(name="quantite", type="decimal", scale=3)
     */
    private $quantite;

    /**
     * @var float $prix_achat_ttc
     *
     * @ORM\Column(name="prix_achat_ttc", type="decimal", scale=3)
     */
    private $prix_achat_ttc;
        /**
     * @var boolean
     *
     * @ORM\Column(name="is_noir" , type="boolean")
     */
    private $is_noir;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set quantite
     *
     * @param float $quantite
     * @return StockAchat
     */
    public function setQuantite($quantite)
    {
        $this->quantite = $quantite;
    
        return $this;
    }

    /**
     * Get quantite
     *
     * @return float 
     */
    public function getQuantite()
    {
        return $this->quantite;
    }

    /**
     * Set prix_achat_ttc
     *
     * @param float $prixAchatTtc
     * @return StockAchat
     */
    public function setPrixAchatTtc($prixAchatTtc)
    {
        $this->prix_achat_ttc = $prixAchatTtc;
    
        return $this;
    }

    /**
     * Get prix_achat_ttc
     *
     * @return float 
     */
    public function getPrixAchatTtc()
    {
        return $this->prix_achat_ttc;
    }

    /**
     * Set stock
     *
     * @param Gds\ArticleBundle\Entity\Stock $stock
     * @return StockAchat
     */
    public function setStock(\Gds\ArticleBundle\Entity\Stock $stock)
    {
        $this->stock = $stock;
    
        return $this;
    }

    /**
     * Get stock
     *
     * @return Gds\ArticleBundle\Entity\Stock 
     */
    public function getStock()
    {
        return $this->stock;
    }

    /**
     * Set is_noir
     *
     * @param boolean $isNoir
     * @return StockAchat
     */
    public function setIsNoir($isNoir)
    {
        $this->is_noir = $isNoir;

        return $this;
    }

    /**
     * Get is_noir
     *
     * @return boolean 
     */
    public function getIsNoir()
    {
        return $this->is_noir;
    }
}
